﻿package com.adsame.interfaces
{
	/**
	 * IAsamIterator 
	 *
	 * 迭代器工具，
	 * 为储存和遍历链表的各个节点提供方便的接口
	 * 
	 * @package 
	 * @version $id$
	 * @copyright Powered By Adsame 2008-2009 (c)
	 * @author olga 
	 * @license 
	 */
	public interface IAsamIterator
	{
		function add(data : Object, index : String) : void;

		function getByName(index : String) : Object;

		function get() : Object;

		function next() : Object;

		function prev() : Object;

		function each(callback : Function, scope : Object) : Boolean;

		function eachByName(index : String, callback : Function, scope : Object) : Boolean;
	}
}
